package Day2025_02_23;

public class Test_MyTimer {
    public static void main(String[] args) throws InterruptedException {
        MyTimer myTimer = new MyTimer(5);
        myTimer.schedule(() -> {
            System.out.println("起床");
        }, 0);
        myTimer.schedule(() -> {
            System.out.println("洗漱");
        }, 0);
        myTimer.schedule(() -> {
            System.out.println("吃饭");
        }, 0);
        myTimer.schedule(() -> {
            System.out.println("打代码");
        }, 1000);
        myTimer.schedule(() -> {
            System.out.println("上课");
        }, 2000);
        myTimer.schedule(() -> {
            System.out.println("复习");
        }, 3000);
        myTimer.schedule(() -> {
            System.out.println("睡觉");
        }, 4000);
    }
}
